using FluentNHibernate.Mapping;
using Subfaculty.Common.Entities;

namespace Subfaculty.Infrastructure.Repositories.Mapping
{
	public class DepartmentMapping : ClassMap<Department>
	{
		public DepartmentMapping()
		{
			Id(x => x.Id).GeneratedBy.Identity();

			Map(x => x.Title);
			Map(x => x.Abbreviation);
		}
	}
}